
package jpa.entities;
import java.io.Serializable;
import java.util.List;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Temporal;

@Entity
@Table(name="ADRESS")
public class Adress implements Serializable {
    private static final long serialVersionUID = 1L;
	@Id
	private Long id;		
	@Column(nullable = false)		
	private String street1;		
	private String street2;		
	@Column(nullable = false)		
	private String city;		
	@Column(nullable = false)		
	private String state;		
	@Column(nullable = false)		
	private String zipcode;		
	@Column(nullable = false)		
	private String country;		

	public Adress(){
	}

	public Long getId(){
		return id;
	}

	public void setId(Long id){
		this.id = id;
	}
	
	public String getStreet1(){
		return street1;
	}

	public void setStreet1(String street1){
		this.street1 = street1;
	}
	
	public String getStreet2(){
		return street2;
	}

	public void setStreet2(String street2){
		this.street2 = street2;
	}
	
	public String getCity(){
		return city;
	}

	public void setCity(String city){
		this.city = city;
	}
	
	public String getState(){
		return state;
	}

	public void setState(String state){
		this.state = state;
	}
	
	public String getZipcode(){
		return zipcode;
	}

	public void setZipcode(String zipcode){
		this.zipcode = zipcode;
	}
	
	public String getCountry(){
		return country;
	}

	public void setCountry(String country){
		this.country = country;
	}
	
}
